﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Tank.Properties;

namespace Tank
{
    /// <summary>
    /// 敌方弹药类
    /// </summary>
    public class EShell : Shell
    {
        /// <summary>
        /// 弹药造型图
        /// </summary>
        private static Image EShellImg = Resources.eshull;

        /// <summary>
        /// 敌方弹药构造函数
        /// </summary>
        /// <param name="role">玩家</param>
        /// <param name="life">子弹寿命</param>
        /// <param name="speed">子弹速度</param>
        /// <param name="power">子弹威力</param>
        public EShell(Roles role, int life, int speed, int power)
            : base(role, life, EShellImg.Width, EShellImg.Height, speed, power)
        {
        }

        /// <summary>
        /// 画出敌方弹药
        /// </summary>
        /// <param name="g"></param>
        public override void Draw(Graphics g)
        {
            base.Move();
            g.DrawImage(EShellImg, this.X, this.Y);
        }
    }
}
